<?php

if(!isset($param[0]))throw new Exception('Not enough parameter');

$clsn=$param[0].'Table';
try{
	$t=new $clsn;
	$state['table']=$param[0];
	if(isset($state['record_id']))unset($state['record_id']);
}catch(Exception $e){
	throw new Exception('Table not found');
}
echo 'ok.';
